<?php
/**
 *
 * @author Mr Ken
 * @version 
 */
require_once 'Zend/View/Interface.php';

/**
 * {1} helper
 *
 * @uses viewHelper {0}
 */
class Zend_View_Helper_CssHelper extends Zend_View_Helper_Abstract 
{ 
	function cssHelper() { 
		$request = Zend_Controller_Front::getInstance()->getRequest();
        $file_uri = 'media/css/' . $request->getControllerName() . '/' . $request->getActionName() . '.css'; 
		if (file_exists($file_uri)) { 
			$this->view->headLink()->appendStylesheet('/' . $file_uri); 
		} 
		 return $this->view->headLink(); 
	} 
}
